﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

#nullable disable

namespace lin_cms_dotnet_core.Models
{
    [Table("movie")]
    public partial class Movie
    {
        [Column("created_at", TypeName = "datetime")]
        public DateTime? CreatedAt { get; set; }
        [Column("status", TypeName = "smallint(6)")]
        public short? Status { get; set; }
        [Key]
        [Column("id", TypeName = "int(11)")]
        public int Id { get; set; }
        [Column("image")]
        [StringLength(64)]
        public string Image { get; set; }
        [Column("content")]
        [StringLength(300)]
        public string Content { get; set; }
        [Column("pubdate", TypeName = "date")]
        public DateTime? Pubdate { get; set; }
        [Column("fav_nums", TypeName = "smallint(6)")]
        public short? FavNums { get; set; }
        [Column("title")]
        [StringLength(50)]
        public string Title { get; set; }
        [Column("type", TypeName = "int(11)")]
        public int? Type { get; set; }
        [Column("updated_at", TypeName = "datetime")]
        public DateTime? UpdatedAt { get; set; }
        [Column("deleted_at", TypeName = "datetime")]
        public DateTime? DeletedAt { get; set; }
    }
}
